package net.apexes.demo.codegen.ormlite.entity;


/**
 * Pay. the database table "PAY"
 */
public class Pay extends net.apexes.demo.codegen.entity.base.EntityBase {

    private static final long serialVersionUID = 1L;

    /**
     * NAME
     */
    private String name;

    /**
     * PAY_TYPE
     */
    private net.apexes.demo.codegen.entity.enums.PayType payType;

    /**
     * ALLOW_CHANGE
     */
    private Boolean allowChange;

    /**
     * ALLOW_FAVOURED
     */
    private Boolean allowFavoured;

    /**
     * DEFAULT_VALUE
     */
    private java.math.BigDecimal defaultValue;

    /**
     * TEMPLATE_ID
     */
    private String templateId;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public net.apexes.demo.codegen.entity.enums.PayType getPayType() {
        return payType;
    }

    public void setPayType(net.apexes.demo.codegen.entity.enums.PayType payType) {
        this.payType = payType;
    }

    public Boolean getAllowChange() {
        return allowChange;
    }

    public void setAllowChange(Boolean allowChange) {
        this.allowChange = allowChange;
    }

    public Boolean getAllowFavoured() {
        return allowFavoured;
    }

    public void setAllowFavoured(Boolean allowFavoured) {
        this.allowFavoured = allowFavoured;
    }

    public java.math.BigDecimal getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(java.math.BigDecimal defaultValue) {
        this.defaultValue = defaultValue;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public void cloneFrom(Pay from) {
        this.name = from.name;
        this.payType = from.payType;
        this.allowChange = from.allowChange;
        this.allowFavoured = from.allowFavoured;
        this.defaultValue = from.defaultValue;
        this.templateId = from.templateId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        sb.append(",name=").append(name);
        sb.append(",payType=").append(payType);
        sb.append(",allowChange=").append(allowChange);
        sb.append(",allowFavoured=").append(allowFavoured);
        sb.append(",defaultValue=").append(defaultValue);
        sb.append(",templateId=").append(templateId);
        return sb.toString();
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

}

